import request from '@/utils/request'

export function getUserMoneyLogList(data) {
  return request({
    url: 'user/money/list',
    method: 'post',
    params: data
  })
}

export function getUserMoney(userId) {
  return request({
    url: 'user/money/log/list',
    method: 'post',
    params: { userId }
  })
}

export function addUserMoney(data) {
  return request({
    url: 'user/money/add',
    method: 'post',
    data
  })
}

export function editUserMoney(data) {
  return request({
    url: 'user/money/edit',
    method: 'post',
    data
  })
}

export function editUserMoneyStatus(id, status) {
  return request({
    url: 'user/money/edit/status',
    method: 'post',
    params: { id, status }
  })
}
